package br.com.kapa.model;

import java.util.Calendar;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@DiscriminatorValue(value="ADMIN")
public class UsuarioRaiz extends Usuario {

	private static final long serialVersionUID = 1L;
	private String sessionId;
	@Temporal(TemporalType.TIMESTAMP)
	private Calendar sessionStart;

	public UsuarioRaiz() {
		setSessionStart(Calendar.getInstance());
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public Calendar getSessionStart() {
		return sessionStart;
	}

	public void setSessionStart(Calendar sessionStart) {
		this.sessionStart = sessionStart;
	}

}
